﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IMark.DAO
{
    public class DangKyNhanMailModels
    {
        public static List<DANG_KY_NHAN_MAIL> GetAll()
        {
            using (var context = new EMartEntities())
            {
                return context.DANG_KY_NHAN_MAIL.ToList();
            }
        }
        public static List<DANG_KY_NHAN_MAIL> GetListSend()
        {
            using (var context = new EMartEntities())
            {
                return context.DANG_KY_NHAN_MAIL.Where(w => w.TrangThai == 1).ToList();
            }
        }
    }
}